package com.ruoyi.buildingtask.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buildingtask.mapper.SysBuildingsTaskMapper;
import com.ruoyi.buildingtask.domain.SysBuildingsTask;
import com.ruoyi.buildingtask.service.ISysBuildingsTaskService;

/**
 * 楼栋任务Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-16
 */
@Service
public class SysBuildingsTaskServiceImpl implements ISysBuildingsTaskService 
{
    @Autowired
    private SysBuildingsTaskMapper sysBuildingsTaskMapper;

    /**
     * 查询楼栋任务
     * 
     * @param id 楼栋任务主键
     * @return 楼栋任务
     */
    @Override
    public SysBuildingsTask selectSysBuildingsTaskById(Integer id)
    {
        return sysBuildingsTaskMapper.selectSysBuildingsTaskById(id);
    }

    /**
     * 查询楼栋任务列表
     * 
     * @param sysBuildingsTask 楼栋任务
     * @return 楼栋任务
     */
    @Override
    public List<SysBuildingsTask> selectSysBuildingsTaskList(SysBuildingsTask sysBuildingsTask)
    {
        return sysBuildingsTaskMapper.selectSysBuildingsTaskList(sysBuildingsTask);
    }

    /**
     * 新增楼栋任务
     * 
     * @param sysBuildingsTask 楼栋任务
     * @return 结果
     */
    @Override
    public int insertSysBuildingsTask(SysBuildingsTask sysBuildingsTask)
    {
        return sysBuildingsTaskMapper.insertSysBuildingsTask(sysBuildingsTask);
    }

    /**
     * 修改楼栋任务
     * 
     * @param sysBuildingsTask 楼栋任务
     * @return 结果
     */
    @Override
    public int updateSysBuildingsTask(SysBuildingsTask sysBuildingsTask)
    {
        return sysBuildingsTaskMapper.updateSysBuildingsTask(sysBuildingsTask);
    }

    /**
     * 批量删除楼栋任务
     * 
     * @param ids 需要删除的楼栋任务主键
     * @return 结果
     */
    @Override
    public int deleteSysBuildingsTaskByIds(Integer[] ids)
    {
        return sysBuildingsTaskMapper.deleteSysBuildingsTaskByIds(ids);
    }

    /**
     * 删除楼栋任务信息
     * 
     * @param id 楼栋任务主键
     * @return 结果
     */
    @Override
    public int deleteSysBuildingsTaskById(Integer id)
    {
        return sysBuildingsTaskMapper.deleteSysBuildingsTaskById(id);
    }
}
